/*
 * IObankAPIApp.java
 */

package iobankapi;


import javax.swing.UIManager;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 * Główna klasa aplikacji zawierająca metodę main
 */
public class IObankAPIApp extends SingleFrameApplication {

   
    /**
     * metoda pozwala na wprowadzenie ustawień okna
     * @param root instancja java.awt.Window
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }
     /**
     * statyczna metoda main
     * @param args argumenty lini poleceń
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        /*try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Metal".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
            
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }*/
        //</editor-fold>

        /* Create and display the form */
        launch(IObankAPIApp.class, args);
    }
    /**
     * metoda startup przesłaniająca metodę klasy SingleFrameApplication
     * w wyniku jej działania wyświetlane jest okienko logowania
     */
      @Override protected void startup() {
        new LoginFrame().setVisible(true);
    }
      /**
       * 
       * @return zwraca instancje aplikacji
       */
      public static IObankAPIApp getApplication() {
        return Application.getInstance(IObankAPIApp.class);
    }
}